package com.example.ai.model.api

import com.example.ai.model.data.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Created by lijinxi on 2024/3/11.
 * @Description:
 */
interface Api {
    companion object {
        const val GET_VOICE = "get_voice"
        const val GEN_TALK = "generate_talk"
        const val GET_TALK = "get_talk"
    }

    @GET(GET_VOICE)
    suspend fun getVoice(
        @Query("text") text: String, @Query("speaker") speaker: String
    ): BaseResponse?


    @GET(GEN_TALK)
    suspend fun generateTalk(
        @Query("audioUrl") audioUrl: String,
        @Query("picUrl") picUrl: String
    ): BaseResponse?

    @GET(GET_TALK)
    suspend fun getTalk(@Query("talkID") talkID: String): BaseResponse?
}